﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using _4T.DAL;
using _4T.Data;

namespace _4T.BLL
{
    public class ProfileInfoBLL
    {
        private ProfileInfoDAL profileDAL;
        public ProfileInfoDAL ProfileDAL
        {
            get
            {
                if (profileDAL == null)
                {
                    profileDAL = new ProfileInfoDAL();
                }
                return profileDAL;
            }
        }

        public ProfileInfoBLL() { }

        public List<ProfileInfo> GetProfileList(string position, string personalCode, int stage, int status)
        {
            return ProfileDAL.GetProfileList(position, personalCode, stage, status);
        }

        public int GetTotalNumberProfile(int status)
        {
            return ProfileDAL.GetTotalNumberProfile(status);
        }

        public CMS_ProfileInfo GetLastProfileInfoByProfileCode(string profileCode)
        {
            return ProfileDAL.GetLastProfileInfoByProfileCode(profileCode);
        }

        public CMS_ProfileInfo GetProfileInfoByProfileInfoCode(string profileInfoCode)
        {
            return ProfileDAL.GetProfileInfoByProfileInfoCode(profileInfoCode);
        }
        public string GetProfileInfoCodeFromProfileCode(string profileCode)
        {
            return new ProfileInfoDAL().GetProfileInfoCodeFromProfileCode(profileCode);
        }
    }
}